<?php

//法币交易PC端接口路由

Route::group(['middleware' => 'web', 'namespace' => 'Otc'], function () {
	    //首页
        Route::any('coin_index', 'IndexController@coin_index');
        //用户信息
        Route::any('user_info', 'IndexController@user_info');
        //商家相关价格设置信息
        Route::any('rech_public_fit', 'PublicController@rech_public_fit');

        //需要token的接口
        Route::group(['middleware' => 'CheckToken'], function () {
            //商家发布的广告单列表
            Route::any('rech_orders', 'RechargeController@rech_orders');
            //保存交易单
            Route::any('save_order', 'RechargeController@save_order');
            //用户（交易单列表）
            Route::any('rechorder_list', 'RechargeController@rechorder_list');
            //修改订单状态
            Route::any('update_order_status', 'OrderController@update_order_status');
            //申诉订单
            Route::any('appeal_order', 'OrderController@appeal_order');
            //回复申述
            Route::any('appeal_reply', 'OrderController@appeal_reply');
            //广告列表
            Route::any('issued_advert', 'AdvertController@issued_advert');
            //商家 订单列表
            Route::any('business_orders', 'AdvertController@business_orders');
            //商家发布广告
            Route::any('create_rech_order', 'AdvertController@create_rech_order');
            //绑定支付宝
            Route::any('bind_alipay', 'CenterController@bind_alipay');
            //绑定微信
            Route::any('bind_wechat', 'CenterController@bind_wechat');
            //解绑商家
            Route::any('unbind_apply', 'CenterController@unbind_apply');
            //修改头像
            Route::any('update_headimg', 'CenterController@update_headimg');
            //修改昵称
            Route::any('update_nickname', 'CenterController@update_nickname');   
            //商家入驻
            Route::any('enter_apply', 'CenterController@enter_apply');
            //资产认证
            Route::any('property_ident', 'CenterController@property_ident');
        });
        //订单详情
        Route::any('order_info', 'RechargeController@order_info');
        //撤销广告单
        Route::any('cancel_rech_order', 'AdvertController@cancel_rech_order');
        //广告单详情
        Route::any('rech_order_info', 'AdvertController@rech_order_info');
        //商家编辑广告
        Route::any('update_rech_order', 'AdvertController@update_rech_order');
        //获取USDT价格
        Route::any('get_usdt_rate', 'PublicController@get_usdt_rate');
});